package idea.mybatis.db.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
@TableName("TL_POINT_ACTIVITY")
public class TlPointActivity extends Model<TlPointActivity> {

    private static final long serialVersionUID = 1L;

    /**
     * 积分活动ID
     */
	@TableId(value="ACTIVITY_ID", type= IdType.AUTO)
	private Integer activityId;
    /**
     * 积分活动名称
     */
	@TableField("ACTIVITY_NAME")
	private String activityName;
    /**
     * 积分用户类型
     */
	@TableField("USER_TYPE")
	private Integer userType;
    /**
     * 接入系统限定，多个系统之间用半角逗号分割，空代表不做限定
     */
	@TableField("SYSTEM_ID_ARR")
	private String systemIdArr;
    /**
     * 活动起始时间
     */
	@TableField("ACTIVITY_START")
	private Date activityStart;
    /**
     * 活动截止时间
     */
	@TableField("ACTIVITY_END")
	private Date activityEnd;
    /**
     * 业务类型; 1:生产积分; 2:消费积分; 3:先消费后生产
     */
	@TableField("BUSINESS_TYPE")
	private Integer businessType;
    /**
     * 0: 未上线; 1:上线; 2:上线但冻结;3:下线; 9:结束
     */
	@TableField("ACTIVITY_STATUS")
	private Integer activityStatus;
    /**
     * 活动说明
     */
	@TableField("ACTIVITY_DESC")
	private String activityDesc;


	public Integer getActivityId() {
		return activityId;
	}

	public TlPointActivity setActivityId(Integer activityId) {
		this.activityId = activityId;
		return this;
	}

	public String getActivityName() {
		return activityName;
	}

	public TlPointActivity setActivityName(String activityName) {
		this.activityName = activityName;
		return this;
	}

	public Integer getUserType() {
		return userType;
	}

	public TlPointActivity setUserType(Integer userType) {
		this.userType = userType;
		return this;
	}

	public String getSystemIdArr() {
		return systemIdArr;
	}

	public TlPointActivity setSystemIdArr(String systemIdArr) {
		this.systemIdArr = systemIdArr;
		return this;
	}

	public Date getActivityStart() {
		return activityStart;
	}

	public TlPointActivity setActivityStart(Date activityStart) {
		this.activityStart = activityStart;
		return this;
	}

	public Date getActivityEnd() {
		return activityEnd;
	}

	public TlPointActivity setActivityEnd(Date activityEnd) {
		this.activityEnd = activityEnd;
		return this;
	}

	public Integer getBusinessType() {
		return businessType;
	}

	public TlPointActivity setBusinessType(Integer businessType) {
		this.businessType = businessType;
		return this;
	}

	public Integer getActivityStatus() {
		return activityStatus;
	}

	public TlPointActivity setActivityStatus(Integer activityStatus) {
		this.activityStatus = activityStatus;
		return this;
	}

	public String getActivityDesc() {
		return activityDesc;
	}

	public TlPointActivity setActivityDesc(String activityDesc) {
		this.activityDesc = activityDesc;
		return this;
	}

	public static final String ACTIVITY_ID = "ACTIVITY_ID";

	public static final String ACTIVITY_NAME = "ACTIVITY_NAME";

	public static final String USER_TYPE = "USER_TYPE";

	public static final String SYSTEM_ID_ARR = "SYSTEM_ID_ARR";

	public static final String ACTIVITY_START = "ACTIVITY_START";

	public static final String ACTIVITY_END = "ACTIVITY_END";

	public static final String BUSINESS_TYPE = "BUSINESS_TYPE";

	public static final String ACTIVITY_STATUS = "ACTIVITY_STATUS";

	public static final String ACTIVITY_DESC = "ACTIVITY_DESC";

	@Override
	protected Serializable pkVal() {
		return this.activityId;
	}

	@Override
	public String toString() {
		return "TlPointActivity{" +
			"activityId=" + activityId +
			", activityName=" + activityName +
			", userType=" + userType +
			", systemIdArr=" + systemIdArr +
			", activityStart=" + activityStart +
			", activityEnd=" + activityEnd +
			", businessType=" + businessType +
			", activityStatus=" + activityStatus +
			", activityDesc=" + activityDesc +
			"}";
	}
}
